#打印菱形
#num = 3
# hang = 9
# for i in range(1,2*((hang-1)//2+1),2):
#     print(("*"*i).center(hang))
# for i in range(2*((hang-1)//2)-1,0,-2):
#     print(("*"*i).center(hang))




